package edu.String;

import java.util.Arrays;

public class turnDemo1 {
    public static void main(String[] args) {
        //char转string
        char c = 'c';
        String str = Character.toString(c);
        String str1 = String.valueOf(c);
        String str2 = "" + 'c';

        //char[]转string
        char[] c1 = {'j', 'a', 'v', 'a'};
        String st = new String(c1);
        String st1 = String.valueOf(c1);
        String st2 = Arrays.toString(c1);

        //string转char[]
        String s = "java";
        char[] c2 = s.toCharArray();
        System.out.println(c2);
    }
}
